<!--<include file="Core_Extend::template('header')" />-->

<!--{:Core_Extend::validate()}-->
<script src="<!--{:__PUBLIC__}-->/js/jquery/nakedpassword/naked_password.js" type="text/javascript"></script>

<!--{script}-->
$(document).ready(function(){
	$("#old_password,#user_password,#new_password").nakedPassword({path: "<!--{:__PUBLIC__}-->/js/jquery/nakedpassword/images/"});
});

function update(){
	$("#submit_button").attr("disabled","disabled");
	$("#submit_button").val('<!--<lang package='__COMMON_LANG__@Common'>-->更新<!--</lang>-->...');
	Q.AjaxSubmit('passwordUpd','<!--{:Q::U('getpassword/change_pass')}-->',null,complete);
}

function complete(data,status){
	$("#submit_button").attr("disabled", false);
	$("#submit_button").val("<!--<lang package='__COMMON_LANG__@Common'>-->更新<!--</lang>-->");
	if(status==1){
		setTimeout(function(){window.location.href=Q.U('home://public/login');},1000);
	}
}

checkForm(update);
<!--{/script}-->

	<div class="container_12">
		<ul class="breadcrumb">
			<li><a href="<!--{:__APP__}-->" title="<!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>-->"><!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><!--<lang package='Template'>-->重置密码<!--</lang>--></li>
		</ul>
	</div>
		
	<div class="container_12 container_box">
		<div class="grid_12">
			<form action="<!--{:Q::U('getpassword/change_pass')}-->" method="post" id="passwordUpd" class="validate">
				<fieldset>
					<div class="control-group">
						<label class="control-label" for="user_email">Email</label>
						<div class="controls">
							<input class="input-xlarge {required:true,email:true}" type="text" readonly="true" name="user_email" id="user_email" size="40" value="<!--{$sEmail}-->" />
							<p class="input_errortips"></p>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="user_password"><!--<lang package='Template'>-->新密码<!--</lang>--></label>
						<div class="controls">
							<input class="input-xlarge" type="password" name="user_password" id="user_password" size="40" value="" required/>
							<p class="input_errortips"></p>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="new_password"><!--<lang package='Template'>-->确认新密码<!--</lang>--></label>
						<div class="controls">
							<input class="input-xlarge {required:true,equalTo:'#user_password'}" type="password" name="new_password" id="new_password" size="40" value="" />
							<p class="input_errortips"></p>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="seccode"><!--<lang package='__COMMON_LANG__@Common'>-->验证码<!--</lang>--></label>
						<div class="controls">
							<input name="seccode" id="seccode" type="text" class="input-small {required:true,remote:Q.U('home://public/validate_seccode'),messages:{remote:'<!--<lang package='__COMMON_LANG__@Common'>-->验证码错误<!--</lang>-->'}} left" value="">&nbsp;
							<span class="validate_seccode"><span class="input_errortips"></span></span>
							<p class="help-block" style="clear:both;padding-top:10px;"><span id="seccodeImage"><img style="cursor:pointer" onclick="updateSeccode()" src="<!--{:Q::U('home://public/seccode')}-->" /></span></p>
						</div>
					</div>
					<div class="form-actions">
						<input type="hidden" name="ajax" value="1">
						<input type="hidden" name="appeal" value="<!--{$nAppeal}-->">
						<input type="hidden" name="user_id" value="<!--{$user_id}-->">
						<input id="submit_button" type="submit" class="btn" value="<!--<lang package='__COMMON_LANG__@Common'>-->更新<!--</lang>-->" />
					</div>
				</fieldset>
			</form>
		</div>
	</div>

<!--<include file="Core_Extend::template('footer')" />-->